<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title></title>
    </head>
    <body>
        <?php
        $con=mysqli_connect("localhost","root","admin");
        // Check connection
            if (mysqli_connect_errno())
              {
                 echo "Failed to connect to MySQL: " . mysqli_connect_error();
              }

        // Create database
            $sql="CREATE DATABASE HOPEWw";
                if (mysqli_query($con,$sql))
                    {
                         echo "Database HOPEWw created successfully";
                     }
                else
                    {
                           echo "Error creating database: " . mysqli_error($con);
                    }
        ?>
    </body>
</html>
